<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>任务记录网站</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <header>
            <h1>我的任务清单</h1>
            <p>记录和管理您的日常任务</p>
        </header>

        <div class="task-input-section">
            <form id="task-form">
                <input type="text" id="task-input" placeholder="输入新任务..." required>
                <button type="submit">添加任务</button>
            </form>
        </div>

        <div class="filter-section">
            <button class="filter-btn active" data-filter="all">所有任务</button>
            <button class="filter-btn" data-filter="active">待完成</button>
            <button class="filter-btn" data-filter="completed">已完成</button>
        </div>

        <div class="task-list-section">
            <ul id="task-list">
                <!-- 任务将通过JavaScript动态添加 -->
            </ul>
        </div>

        <div class="stats-section">
            <p>总计: <span id="total-count">0</span> 任务 | 
                待完成: <span id="active-count">0</span> | 
                已完成: <span id="completed-count">0</span>
            </p>
            <button id="clear-completed">清除已完成</button>
        </div>
    </div>

    <script src="script.js"></script>
</body>
</html>